package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Destination;
import cn.wolfcode.wolf2w.domain.Region;
import cn.wolfcode.wolf2w.domain.StrategyCatalog;
import cn.wolfcode.wolf2w.query.DestinationQuery;
import org.springframework.data.domain.Page;
import sun.security.krb5.internal.crypto.Des;

import java.util.List;

public interface IDestinationService {

    /**
     * 添加
     *
     * @param destination
     */
    void save(Destination destination);

    /**
     * 修改
     *
     * @param destination
     */
    void update(Destination destination);

    /**
     * 删除
     *
     * @param id
     */
    void delete(String id);


    /**
     * 查询单个
     *
     * @param id
     */
    Destination get(String id);


    /**
     * 查询多个
     *
     * @return
     */
    List<Destination> list();




    /*
    * 分页查询
    * */
    Page<Destination> query(DestinationQuery qo);


    List<Destination> getDestByRegionId(String rid);

    List<Destination> queryToastsById(String parentId);


    List<Destination> queryDestByRegionId(String regionId);

    List<StrategyCatalog> queryCatalogByDestId(String id);

    Destination queryByName(String name);
}
